@import 'src/app/common/styles/variable/index.scss';
@import 'src/app/common/styles/mixin/index.scss';
.cp-estate-filter {
  display: flex;
  top: 0.42rem;
  background: #fff;
  .item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 0.4rem;
    .text {
      max-width: 0.75rem;
      @include ellipsis();
      font-size: 0.13rem;
      color: $font2;
    }
    .icon {
      margin-left: 0.04rem;
      font-size: 0.1rem;
      color: $font4;
    }
    &.active {
      .text,
      .icon {
        color: $primary;
      }
    }
  }
}
.areabox {
  background: #fff;
  .body {
    display: flex;
    position: relative;
    .item {
      margin-left: $pagePadding;
      padding-right: $pagePadding;
      height: 0.4rem;
      line-height: 0.4rem;
      &.active {
        color: $primary;
      }
    }
    .left {
      width: 1rem;
      border-right: 1px solid $border1;
    }
    .middle {
      flex: 1;
      height: 2rem;
      overflow-y: auto;
    }
    .inner {
      position: absolute;
      top: 0;
      left: 2rem;
      right: 0;
      height: 100%;
      overflow-y: auto;
      background: #fff;
      border-left: 1px solid $border1;
      z-index: 2;
      .item {
        display: flex;
        justify-content: space-between;
        .right {
          .icon-checkbox {
            color: $border4;
          }
          .icon-checkbox-fill {
            color: $primary;
          }
        }
      }
    }
  }
  .footer {
    display: flex;
    padding: 0.08rem $pagePadding;
    .btn-reset {
      margin-right: 0.08rem;
      color: $font3;
      border: 1px solid $border1;
    }
  }
}
.pricebox {
  background: #fff;
  .body {
    display: flex;
    .item {
      margin-left: $pagePadding;
      padding-right: $pagePadding;
      height: 0.4rem;
      line-height: 0.4rem;
      &.active {
        color: $primary;
      }
    }
    .left {
      width: 1rem;
      border-right: 1px solid $border1;
    }
    .right {
      flex: 1;
    }
  }
  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.08rem $pagePadding;
    input {
      width: 0.72rem;
      height: 0.3rem;
      line-height: 0.3rem;
      text-align: center;
      border-radius: 0.02rem;
      border: 1px solid $border1;
    }
    .unit {
      margin: 0 0.12rem 0 0.08rem;
    }
    .btn {
      width: 0.8rem;
    }
  }
}
.layoutbox {
  background: #fff;
  .body {
    .item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 $pagePadding;
      height: 0.44rem;
      &.active .left {
        color: $primary;
      }
      .right {
        .icon {
          font-size: 0.18rem;
        }
        .icon-checkbox {
          color: $border4;
        }
        .icon-checkbox-fill {
          color: $primary;
        }
      }
    }
  }
  .footer {
    padding: 0.08rem $pagePadding;
  }
}
.morebox {
  background: #fff;
  .body {
    height: calc(100vh - 0.82rem - 0.54rem);
    overflow-y: auto;
  }
  .block {
    margin-top: 0.2rem;
    padding: 0 $pagePadding;
    .title {
      margin-bottom: 0.08rem;
    }
    .children {
      display: flex;
      flex-wrap: wrap;
      .item {
        margin: 0 0.08rem 0.08rem 0;
        padding: 0.08rem 0;
        width: 0.79rem;
        text-align: center;
        font-size: 0.12rem;
        line-height: 0.14rem;
        color: $font2;
        border-radius: 0.02rem;
        border: 1px solid $border1;
        &:nth-child(4n),
        &.last {
          margin-right: 0;
        }
        &.active {
          color: $primary;
          border-color: $primary;
        }
        &.sorter-item {
          width: 1.09rem;
        }
      }
    }
  }
  .footer {
    display: flex;
    padding: 0.08rem $pagePadding;
    .btn-reset {
      margin-right: 0.08rem;
      color: $font3;
      border: 1px solid $border1;
    }
  }
}
